package com.pactera.miyuangroup.db.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 商品分类
 * </p>
 *
 * @author WangWu
 * @since 2018-04-13
 */
@TableName("t_goods_classification")
public class GoodsClassification extends Model<GoodsClassification> {

    private static final long serialVersionUID = 1L;

	private String id;
    /**
     * 分类名称
     */
	private String name;
    /**
     * 编码
     */
	private String code;
    /**
     * 父级id
     */
	private String pid;
    /**
     * 原始ID
     */
	private String originalId;


	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getPid() {
		return pid;
	}

	public void setPid(String pid) {
		this.pid = pid;
	}

	public String getOriginalId() {
		return originalId;
	}

	public void setOriginalId(String originalId) {
		this.originalId = originalId;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "GoodsClassification{" +
			"id=" + id +
			", name=" + name +
			", code=" + code +
			", pid=" + pid +
			", originalId=" + originalId +
			"}";
	}
}
